xsplice: Add support for alternatives
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Sat, 9 Apr 2016 14:07:21 +0000 (10:07 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 29 Apr 2016 07:58:59 +0000 (03:58 -0400)
commitf8a10174e8b17a1b35db1d6adea51f43833bd7d4
treeeb47af05a7048b90477c601ef6a15e90cfb69608
parented8897661d35853955ab2571eda5bbf060c57766
xsplice: Add support for alternatives

Add support for applying alternative sections within xsplice payload.
At payload load time, apply an alternative sections that are found.

Also we add an test-case exercising a rather useless alternative
(patching a NOP with a NOP) - but it does exercise the code-path.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/Makefile
xen/arch/x86/alternative.c
xen/arch/x86/test/xen_hello_world_func.c
xen/common/xsplice.c
xen/include/asm-x86/alternative.h